package com.wyh.service.groupOne.customer;


import com.wyh.domain.vo.groupOne.customer.MasterDataCustomerVO;
import io.lettuce.core.dynamic.annotation.Param;

import java.util.List;

public interface MasterDataCustomerService {
    /**
     * 查询所有客户
     *
     * @param customer
     * @return
     */
    List<MasterDataCustomerVO> selectAll(MasterDataCustomerVO customer);


    /**
     * 精准查询
     *
     * @param
     * @return
     */
    MasterDataCustomerVO selectAccurately(@Param("name") String name, @Param("telephone") String telephone,
                                          @Param("type") Integer type,
                                          @Param("lnvolvinglitigation") Integer lnvolvinglitigation);


    /**
     * 添加客户
     *
     * @param customer
     * @return
     */
    int insert(MasterDataCustomerVO customer);


    /**
     * 查询详情--基础信息
     */
    MasterDataCustomerVO selectDetailBasic(Integer id);

    /**
     * 修改客户信息
     *
     * @param customer
     * @return
     */
    int update(MasterDataCustomerVO customer);

    /**
     * 修改客户状态
     */
    int updateState(MasterDataCustomerVO masterDataCustomerVO);
}
